<?php

use Illuminate\Database\Seeder;
use Modules\Common\Support\ImportPermissions;

return new class () extends Seeder {
    /**
     * Run the seeder.
     *
     * @return void
     */
    public function run(): void
    {
        $menus = $this->menus();

        ImportPermissions::import($menus);
    }

    public function menus(): array
    {
        return array(
  0 =>
  array(
    'id' => 118,
    'parent_id' => 0,
    'permission_name' => '内容管理',
    'route' => '/cms',
    'icon' => 'newspaper',
    'module' => 'cms',
    'permission_mark' => '',
    'component' => '/admin/layout/index.vue',
    'redirect' => null,
    'keepalive' => 1,
    'type' => 1,
    'hidden' => 1,
    'sort' => 1,
    'active_menu' => '',
    'creator_id' => 1,
    'created_at' => 1681709347,
    'updated_at' => 1681709347,
    'deleted_at' => 0,
    'children' =>
    array(
      0 =>
      array(
        'id' => 119,
        'parent_id' => 118,
        'permission_name' => '文章',
        'route' => 'articles',
        'icon' => 'document-chart-bar',
        'module' => 'cms',
        'permission_mark' => 'post',
        'component' => '',
        'redirect' => null,
        'keepalive' => 1,
        'type' => 2,
        'hidden' => 1,
        'sort' => 1,
        'active_menu' => '',
        'creator_id' => 1,
        'created_at' => 1681709462,
        'updated_at' => 1681709462,
        'deleted_at' => 0,
        'children' =>
        array(
          0 =>
          array(
            'id' => 120,
            'parent_id' => 119,
            'permission_name' => '分类目录',
            'route' => 'category',
            'icon' => 'link',
            'module' => 'cms',
            'permission_mark' => 'category',
            'component' => '/cms/category/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681711643,
            'updated_at' => 1681711643,
            'deleted_at' => 0,
            'children' =>
            array(
              0 =>
              array(
                'id' => 121,
                'parent_id' => 120,
                'permission_name' => '删除',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'category@destroy',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 5,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711652,
                'updated_at' => 1681711652,
                'deleted_at' => 0,
              ),
              1 =>
              array(
                'id' => 122,
                'parent_id' => 120,
                'permission_name' => '列表',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'category@index',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 1,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711652,
                'updated_at' => 1681711652,
                'deleted_at' => 0,
              ),
              2 =>
              array(
                'id' => 123,
                'parent_id' => 120,
                'permission_name' => '读取',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'category@show',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 3,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711652,
                'updated_at' => 1681711652,
                'deleted_at' => 0,
              ),
              3 =>
              array(
                'id' => 124,
                'parent_id' => 120,
                'permission_name' => '新增',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'category@store',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 2,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711652,
                'updated_at' => 1681711652,
                'deleted_at' => 0,
              ),
              4 =>
              array(
                'id' => 125,
                'parent_id' => 120,
                'permission_name' => '更新',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'category@update',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 4,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711652,
                'updated_at' => 1681711652,
                'deleted_at' => 0,
              ),
            ),
          ),
          1 =>
          array(
            'id' => 126,
            'parent_id' => 119,
            'permission_name' => '所有文章',
            'route' => 'post',
            'icon' => 'document-duplicate',
            'module' => 'cms',
            'permission_mark' => 'post',
            'component' => '/cms/post/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681711717,
            'updated_at' => 1681711717,
            'deleted_at' => 0,
            'children' =>
            array(
              0 =>
              array(
                'id' => 127,
                'parent_id' => 126,
                'permission_name' => '删除',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'post@destroy',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 5,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711727,
                'updated_at' => 1681711727,
                'deleted_at' => 0,
              ),
              1 =>
              array(
                'id' => 128,
                'parent_id' => 126,
                'permission_name' => '禁用/启用',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'post@enable',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 6,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711727,
                'updated_at' => 1681711727,
                'deleted_at' => 0,
              ),
              2 =>
              array(
                'id' => 129,
                'parent_id' => 126,
                'permission_name' => '列表',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'post@index',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 1,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711727,
                'updated_at' => 1681711727,
                'deleted_at' => 0,
              ),
              3 =>
              array(
                'id' => 130,
                'parent_id' => 126,
                'permission_name' => '读取',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'post@show',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 3,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711727,
                'updated_at' => 1681711727,
                'deleted_at' => 0,
              ),
              4 =>
              array(
                'id' => 131,
                'parent_id' => 126,
                'permission_name' => '新增',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'post@store',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 2,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711727,
                'updated_at' => 1681711727,
                'deleted_at' => 0,
              ),
              5 =>
              array(
                'id' => 132,
                'parent_id' => 126,
                'permission_name' => '更新',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'post@update',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 4,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711727,
                'updated_at' => 1681711727,
                'deleted_at' => 0,
              ),
            ),
          ),
          2 =>
          array(
            'id' => 133,
            'parent_id' => 119,
            'permission_name' => '创建文章',
            'route' => 'create/:id?',
            'icon' => 'arrow-long-right',
            'module' => 'cms',
            'permission_mark' => 'post_create',
            'component' => '/cms/post/create.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 2,
            'sort' => 1,
            'active_menu' => '/cms/articles/post',
            'creator_id' => 1,
            'created_at' => 1681712047,
            'updated_at' => 1681720631,
            'deleted_at' => 0,
          ),
          3 =>
          array(
            'id' => 134,
            'parent_id' => 119,
            'permission_name' => '标签',
            'route' => 'tag',
            'icon' => 'code-bracket',
            'module' => 'cms',
            'permission_mark' => 'tag',
            'component' => '/cms/tag/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681711813,
            'updated_at' => 1681711813,
            'deleted_at' => 0,
            'children' =>
            array(
              0 =>
              array(
                'id' => 135,
                'parent_id' => 134,
                'permission_name' => '删除',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'tag@destroy',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 5,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711819,
                'updated_at' => 1681711819,
                'deleted_at' => 0,
              ),
              1 =>
              array(
                'id' => 136,
                'parent_id' => 134,
                'permission_name' => '列表',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'tag@index',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 1,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711819,
                'updated_at' => 1681711819,
                'deleted_at' => 0,
              ),
              2 =>
              array(
                'id' => 137,
                'parent_id' => 134,
                'permission_name' => '读取',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'tag@show',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 3,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711819,
                'updated_at' => 1681711819,
                'deleted_at' => 0,
              ),
              3 =>
              array(
                'id' => 138,
                'parent_id' => 134,
                'permission_name' => '新增',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'tag@store',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 2,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711819,
                'updated_at' => 1681711819,
                'deleted_at' => 0,
              ),
              4 =>
              array(
                'id' => 139,
                'parent_id' => 134,
                'permission_name' => '更新',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'tag@update',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 4,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681711819,
                'updated_at' => 1681711819,
                'deleted_at' => 0,
              ),
            ),
          ),
        ),
      ),
      1 =>
      array(
        'id' => 140,
        'parent_id' => 118,
        'permission_name' => '资源管理',
        'route' => 'resources',
        'icon' => 'adjustments-horizontal',
        'module' => 'cms',
        'permission_mark' => 'resource',
        'component' => '/cms/resource/index.vue',
        'redirect' => null,
        'keepalive' => 1,
        'type' => 2,
        'hidden' => 1,
        'sort' => 1,
        'active_menu' => '',
        'creator_id' => 1,
        'created_at' => 1681713734,
        'updated_at' => 1681713734,
        'deleted_at' => 0,
        'children' =>
        array(
          0 =>
          array(
            'id' => 141,
            'parent_id' => 140,
            'permission_name' => '删除',
            'route' => '',
            'icon' => '',
            'module' => 'cms',
            'permission_mark' => 'resource@destroy',
            'component' => '',
            'redirect' => '',
            'keepalive' => 1,
            'type' => 3,
            'hidden' => 1,
            'sort' => 5,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681713740,
            'updated_at' => 1681713740,
            'deleted_at' => 0,
          ),
          1 =>
          array(
            'id' => 142,
            'parent_id' => 140,
            'permission_name' => '禁用/启用',
            'route' => '',
            'icon' => '',
            'module' => 'cms',
            'permission_mark' => 'resource@enable',
            'component' => '',
            'redirect' => '',
            'keepalive' => 1,
            'type' => 3,
            'hidden' => 1,
            'sort' => 6,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681713740,
            'updated_at' => 1681713740,
            'deleted_at' => 0,
          ),
          2 =>
          array(
            'id' => 143,
            'parent_id' => 140,
            'permission_name' => '列表',
            'route' => '',
            'icon' => '',
            'module' => 'cms',
            'permission_mark' => 'resource@index',
            'component' => '',
            'redirect' => '',
            'keepalive' => 1,
            'type' => 3,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681713740,
            'updated_at' => 1681713740,
            'deleted_at' => 0,
          ),
          3 =>
          array(
            'id' => 144,
            'parent_id' => 140,
            'permission_name' => '读取',
            'route' => '',
            'icon' => '',
            'module' => 'cms',
            'permission_mark' => 'resource@show',
            'component' => '',
            'redirect' => '',
            'keepalive' => 1,
            'type' => 3,
            'hidden' => 1,
            'sort' => 3,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681713740,
            'updated_at' => 1681713740,
            'deleted_at' => 0,
          ),
          4 =>
          array(
            'id' => 145,
            'parent_id' => 140,
            'permission_name' => '新增',
            'route' => '',
            'icon' => '',
            'module' => 'cms',
            'permission_mark' => 'resource@store',
            'component' => '',
            'redirect' => '',
            'keepalive' => 1,
            'type' => 3,
            'hidden' => 1,
            'sort' => 2,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681713740,
            'updated_at' => 1681713740,
            'deleted_at' => 0,
          ),
          5 =>
          array(
            'id' => 146,
            'parent_id' => 140,
            'permission_name' => '更新',
            'route' => '',
            'icon' => '',
            'module' => 'cms',
            'permission_mark' => 'resource@update',
            'component' => '',
            'redirect' => '',
            'keepalive' => 1,
            'type' => 3,
            'hidden' => 1,
            'sort' => 4,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681713740,
            'updated_at' => 1681713740,
            'deleted_at' => 0,
          ),
        ),
      ),
      2 =>
      array(
        'id' => 147,
        'parent_id' => 118,
        'permission_name' => '设置',
        'route' => 'setting',
        'icon' => 'cog-6-tooth',
        'module' => 'cms',
        'permission_mark' => 'setting',
        'component' => '',
        'redirect' => null,
        'keepalive' => 1,
        'type' => 2,
        'hidden' => 1,
        'sort' => 1,
        'active_menu' => '',
        'creator_id' => 1,
        'created_at' => 1681712437,
        'updated_at' => 1681712437,
        'deleted_at' => 0,
        'children' =>
        array(
          0 =>
          array(
            'id' => 148,
            'parent_id' => 147,
            'permission_name' => '常规',
            'route' => 'general',
            'icon' => 'list-bullet',
            'module' => 'cms',
            'permission_mark' => 'setting',
            'component' => '/cms/setting/general/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681712534,
            'updated_at' => 1681712534,
            'deleted_at' => 0,
            'children' =>
            array(
              0 =>
              array(
                'id' => 149,
                'parent_id' => 148,
                'permission_name' => '列表',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'setting@index',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 1,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681712580,
                'updated_at' => 1681712580,
                'deleted_at' => 0,
              ),
              1 =>
              array(
                'id' => 150,
                'parent_id' => 148,
                'permission_name' => '新增',
                'route' => '',
                'icon' => '',
                'module' => 'cms',
                'permission_mark' => 'setting@store',
                'component' => '',
                'redirect' => '',
                'keepalive' => 1,
                'type' => 3,
                'hidden' => 1,
                'sort' => 2,
                'active_menu' => '',
                'creator_id' => 1,
                'created_at' => 1681712580,
                'updated_at' => 1681712580,
                'deleted_at' => 0,
              ),
            ),
          ),
          1 =>
          array(
            'id' => 151,
            'parent_id' => 147,
            'permission_name' => '内容',
            'route' => 'content',
            'icon' => 'qr-code',
            'module' => 'cms',
            'permission_mark' => 'setting_content',
            'component' => '/cms/setting/content/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681712671,
            'updated_at' => 1681720966,
            'deleted_at' => 0,
          ),
          2 =>
          array(
            'id' => 152,
            'parent_id' => 147,
            'permission_name' => '其他',
            'route' => 'other',
            'icon' => 'cog',
            'module' => 'cms',
            'permission_mark' => 'setting_other',
            'component' => '/cms/setting/other/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681712766,
            'updated_at' => 1681720921,
            'deleted_at' => 0,
          ),
          3 =>
          array(
            'id' => 153,
            'parent_id' => 147,
            'permission_name' => '个人',
            'route' => 'personal',
            'icon' => 'user',
            'module' => 'cms',
            'permission_mark' => 'setting_personal',
            'component' => '/cms/setting/personal/index.vue',
            'redirect' => null,
            'keepalive' => 1,
            'type' => 2,
            'hidden' => 1,
            'sort' => 1,
            'active_menu' => '',
            'creator_id' => 1,
            'created_at' => 1681712730,
            'updated_at' => 1681720943,
            'deleted_at' => 0,
          ),
        ),
      ),
    ),
  ),
);
    }
};
